package com.scs.application.modules.fsd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "智能柜指纹模板表")
@TableName("fsd_fp_templets")
public class FsdFpTemplets extends DataEntity {

    @EntityFieldAnnotation(
            text = "用户id",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String userId;

    @EntityFieldAnnotation(
            text = "指纹模板数据",
            type = EntityFieldType.TEXT,
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String templet;

    @EntityFieldAnnotation(
            text = "模板描述",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;

    @EntityFieldAnnotation(
            text = "重采标志",
            type = EntityFieldType.TINYINT,
            length = "1",
            not_null = true,
            default_value = "0",
            comment = ""
    )
    private Boolean reCollection;

    @EntityFieldAnnotation(
            text = "作废标志(冗余字段，暂不使用)",
            type = EntityFieldType.TINYINT,
            length = "1",
            not_null = true,
            default_value = "0",
            comment = ""
    )
    private Boolean discarded;

    @EntityFieldAnnotation(
            text = "版本号，每次更新递增",
            type = EntityFieldType.INT,
            not_null = true,
            default_value = "1",
            comment = ""
    )
    private Integer version;

}
